#include<stdio.h>
#include<stdlib.h>
void myod(char *f);
int main(int argc,char *argv[]){
    FILE *fd;
    if((fd=Open("a"))==NULL)
    {
        printf("ERROR!\n",argv[0]);
        exit(0);
    }
    myod(argv[1]);
    fclose(fp);
    return 0;
}

void myod(char *f)
{
    FILE *fp;
    char ch;
    char str[16];
    int i=0,j;
    fp=fopen(f,"r");
    printf("\n");
    while((ch=fgetc(fp))!=EOF)
    {
        str[i]=ch;
        i++;
        if(i==16)
        {
             i=0;
             for(j=0;j<16;j++)
             printf("%4c",str[j]);
             printf("\n");
             for(j=0;j<16;j++)
             printf("%4x",str[j]);
             printf("\n");
                
	}
    }
    for(j=0;j<i;j++)
    printf("%4c",str[j]);

    for(j=0;j<i;j++)
    printf("%4x",str[j]);
    printf("\n");
    fclose(fp);
}

